<cfsetting enablecfoutputonly="true" /> 

<!--- @@displayname: CFUGWA Events Page --->
<!--- @@author: AJM --->


<cfimport taglib="/farcry/core/tags/container" prefix="con" />
<cfimport taglib="/farcry/core/tags/webskin" prefix="skin" />
<cfimport taglib="/farcry/plugins/googleMaps/tags/" prefix="gm">

<!--- <cfimport taglib="/farcry/plugins/googleMaps/tags" prefix="gm" /> --->
<cfmodule template="/farcry/projects/#application.applicationname#/webskin/includes/cfugwaHeader.cfm" pageTitle="#stObj.title#">
<CFHTMLHEAD TEXT='<link rel="stylesheet" type="text/css" href="/_css/calendar.css" />' />
<cfoutput>
	<div id="calendarbox">
		<div class="post">
			<div class="innerpost">
				<con:container label="events_Calendar" />			
			</div>
		</div>
	</div>
	
	<div id="calendaritem">
		<div class="post">
			<h2>#DateFormat(stObj.startDate, 'DD MMMM, YYYY')#</h2>
	  		<div class="event">
				<div class="content">
					<h3>#stObj.title#</h3>
					<h4>Venue: #stObj.location#</h4>
					<h4>Time: #TimeFormat(stObj.startDate)#</h4>
	
					<cfif stObj.startDate GT Now()>
					#stObj.body#
					
					
					<cfif ArrayLen(stObj.aLocation) GT 0>
					<!--- create the map object which will give us all plot points --->
					<cfset oMap = createObject("component", application.types["googleMap"].packagepath) />
					
					<cfset stMap = oMap.getData(objectid=stObj.aLocation[1]) />	
					<cfset stMap['bDisplayMarkerList'] = FALSE />
					<gm:displayMap STPARAM="#stMap#">
					</cfif>
					<cfelse>
					#stObj.writeup#
					</cfif>
				</div>
			</div>
		</div>
	</div>
		
	<div id="column3">
		<div class="link-box sponsors">
			<h2>CFUG Sponsors</h2>
			<con:container label="cfugwa_Sponsors" />
		</div>
	</div>
</cfoutput>

<cfmodule template="/farcry/projects/#application.applicationname#/webskin/includes/cfugwaFooter.cfm">